package com.example.mapper;

import com.example.pojo.China;
import com.example.pojo.ConditionsQuery;
import com.example.pojo.PolicyVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PolicyMapper {
    List<PolicyVo> getMedicalPolicyList();

    China getChinaCityById(Integer cityId);

    List<PolicyVo> getMedicalPolicyAndCityList(@Param("cq") ConditionsQuery conditionsQuery);

    int insert(@Param("policyVo") PolicyVo policy);

    int updateById(@Param("policy") PolicyVo policyVo);

    PolicyVo getPolicyById(@Param("id") int id);

    int delPolicyById(@Param("id") int id);

    int delBatch(@Param("ids") List<Integer> idList);
}
